PEP 557 – Data Classes
Rationale
同様の試みは他にもある
なぜこのPEPが必要とされるのか?
No base classes or metaclasses are used by Data Classes.
One main design goal of Data Classes is to support static type checkers.
Data Classes are not, and are not intended to be, a replacement mechanism for all of the above libraries.
「同様の試みに挙げたライブラリたちを置き換える機構ではなく、置き換える意図もない」
データクラスを使うのに適切ではない場所
API compatibility with tuples or dicts is required.
Type validation beyond that provided by PEPs 484 and 526 is required, or value validation or conversion is required.
書きさし